﻿/*
 *
 * User: inffbr
 * Date: 07.03.2011
 * Time: 15:11
 * 
 */
using System;
using System.Collections.Generic;

namespace ThatsMeSDK.Core
{
	/// <summary>
	/// Define an API Call
	/// </summary>
	internal class ApiCall
	{
		/// <summary>
		/// Name of the calling function
		/// </summary>
		internal string FunctionName{get; set;}
		
		/// <summary>
		/// Parameter of the function
		/// </summary>
		internal Dictionary<string, string> Parameter {get; set;}
		
		/// <summary>
		/// Checked if the data should be send by post
		/// </summary>
		internal bool PostRequest {get; set;}
		
		internal ApiCall()
		{
			this.Parameter = new Dictionary<string, string>();
		}
		
		internal ApiCall(string functionName) : this()
		{
			this.FunctionName = functionName;
		}
	}
}
